package ev.data;//need to add this line

public class City {
	private double x;
	private double y;
	private boolean flag;
	private int id;

	public City(double x, double y, int id) {
		this.x = x;
		this.y = y;
		this.id = id;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public boolean getFlag() {
		return this.flag;
	}

	public double[] getXY() {
		return new double[]{x, y};
	}

    public double getX() {
		return  x;
	}

	public double getY() {
		return y;
	}


	public int getID() {
		return this.id;
	}

	public  String  toString()
	{
		String  s  =  "id= "+id+"  x= "+x+"  y= "+y+"\n";
		return  s;
	}

}
